package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

//声音表
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "voice")
public class Voice implements Serializable {
    private ObjectId id; // 主键
    private Long vid;     //大数据使用的id
    private Long userId; //用户id
    private String soundUrl; //语音地址 url
    private boolean received;//是否被接收
    private Long created; //创建时间

    private long likeUserId;//喜欢的用户的id

}
